//package com.example.bes.cloudmq.rocketmqclient.controller;
//
//import org.apache.rocketmq.client.producer.SendResult;
//import org.apache.rocketmq.spring.core.RocketMQTemplate;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
//@RequestMapping(value = "/producer")
//public class ProducerController {
//
//    @Autowired
//    private RocketMQTemplate rocketMQTemplate;
//
//    @GetMapping(value = "/syncsend")
//    public void syncSend(String msg) {
//        SendResult topic1 = rocketMQTemplate.syncSend("topic1", msg);
//        System.out.println(topic1);
//    }
//}
